using NL.ControllerInteface;
namespace NL.Advanced
{
    public partial class Unit<P> : CombatObj<P> where P : PropertyCC
    {

        _TurnerController _Turner;

        public static void CLEAR_HashBoard()
        {
            CountLiving = 0; CountLived = 0; CountDead = 0;
        }
        public static int CountLiving;
        public static int CountLived;
        public static int CountDead;
        protected override void OnLive()
        {
            base.OnLive();

            CountLived++;

            CountLiving++;

            _Turner = gameObject.ADDTurner();

        }

        protected override void OnDead()
        {
            base.OnDead();

            CountDead++;
            CountLiving--;

            if (_Turner != null)
                Destroy(_Turner);
        }
    }
}

